<%inherit file="base.html"/>
<%def name="title()">Media Player</%def>

<table width="100%">
        <tr>
            % if state == 1:
                ## playing
            <td>
                ## logo pause
                <a href='cmd?cmd=pause'><font family="Symbol" size=5>Y</font></a>
            </td>
            % elif state==2:
                ## pausing
            <td>
                ## logo play
                <a href='cmd?cmd=pause'><font family="Symbol" size=5>T</font></a> 
            </td>
            % endif
            <td>
                <a href="cmd?cmd=stop"><font family="Symbol" size=5>Z</font></a>
            </td>
            <td>
                <form method="get" action="seek">seek<input type="text" size=3 name="seek">%</form>
            </td>
            <td>
                <a href="empty">Hide</a>
            </td>
            <td>
                <a href="browse">Browse</a>
            </td>
        </tr>
 </table>
 <br>
 <hr>
    % if state == 2:
        PAUSING
    % else:
        Playing
    % endif
    
    <font color="#FFFF00">${percent}%</font> of ${titre}
<hr>
% for line in info:
    ${line}<br>
% endfor